{% extends "main.html" %}

{% block content %}
			<!-- End Notifications -->
<div class="content-box"><!-- Start Content Box -->
  <div class="content-box-header">					
    <h3>Documents</h3>
	<ul class="content-box-tabs">
	  <li><a href="#tab1" class="default-tab">Documents</a></li>
	</ul>				
	<div class="clear"></div>				
  </div> <!-- End .content-box-header -->

  <div class="content-box-content">					
  <div class="tab-content default-tab" id="tab1"> 
    {% load filetransfers %}
<form action="{{ upload_url }}" method="POST" enctype="multipart/form-data">
  {% csrf_token %}
  {% render_upload_data upload_data %}
  <table>{{ form }}</table>
  <input type="submit" value="Upload" />
</form>

{% load filetransfers %}
{% url upload.views.download_handler pk=upload.pk as fallback_url %}
<a href="{% firstof upload.file|public_download_url fallback_url %}">Download</a>
  </div> <!-- End #tab1 -->
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
{% endblock %}
